/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.server.modules.sys.service.tag;

import com.server.common.persistence.Page;
import com.server.common.service.CrudService;
import com.server.modules.sys.dao.tag.TagDao;
import com.server.modules.sys.entity.tag.Tag;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * 标签Service
 * @author 颜洪毅
 * @version 2016-08-17
 */
@Service
@Transactional(readOnly = true)
public class TagService extends CrudService<TagDao, Tag> {

	public Tag get(String id) {
		return super.get(id);
	}
	
	public List<Tag> findList(Tag tag) {
		return super.findList(tag);
	}
	
	public Page<Tag> findPage(Page<Tag> page, Tag tag) {
		return super.findPage(page, tag);
	}
	
	@Transactional(readOnly = false)
	public void save(Tag tag) {
		super.save(tag);
	}
	
	@Transactional(readOnly = false)
	public void delete(Tag tag) {
		super.delete(tag);
	}
	
}